You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prevent API tests from hanging during DevWorkspace cleanup - #24015
Adds a two-minute timeout to DevWorkspace deletion in the shared e2e cleanup utility.
If the DevWorkspace finalizer patch is rejected—for example, when the admission webhook cannot resolve the editor plugin—oc delete dw may wait indefinitely for finalizers. This caused the JBossEapDevFileAPI pipeline to remain stuck until the parent pipeline timeout.
Changes
Add --timeout=2m to oc/kubectl delete dw.
Apply the timeout to all API tests using deleteDevWorkspace.
Preserve normal waiting behavior when deletion succeeds.
The cleanup wait is now bounded in the default OpenShift environment, with no identified merge-blocking risk.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: bounding DevWorkspace deletion so API tests stop hanging during cleanup. The raw summary confirms the change adds a two-minute timeout to the delete call in the shared…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: bounding DevWorkspace deletion so API tests stop hanging during cleanup. The raw summary confirms the change adds a two-minute timeout to the delete call in the shared e2e cleanup utility, and the objectives state the same purpose. The title is specific and matches the changeset.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Tip
🎯 Customize your risk assessments
Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.
✅ Automatic approvals, with your rules
Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a two-minute timeout to DevWorkspace deletion in the shared e2e cleanup utility.
If the DevWorkspace finalizer patch is rejected—for example, when the admission webhook cannot resolve the editor plugin—
oc delete dwmay wait indefinitely for finalizers. This caused theJBossEapDevFileAPIpipeline to remain stuck until the parent pipeline timeout.Changes
--timeout=2mtooc/kubectl delete dw.deleteDevWorkspace.Screenshot/screencast of this PR
What issues does this PR fix or reference?
https://redhat.atlassian.net/browse/CRW-14141
How to test this PR?
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or referenceandHow to test this PRcompletedReviewers
Reviewers, please comment how you tested the PR when approving it.
Summary by CodeRabbit